import card.Card;
import card.CardDemo;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        List<Card> cardList = cardDemo.buyCard();
        System.out.println("买的牌如下:");
        System.out.println(cardList);

        System.out.println("洗牌:");
        cardDemo.shuffle(cardList);
        System.out.println(cardList);

        System.out.println("揭牌:");
        List<List<Card>> cards = cardDemo.getCard(cardList);
        for(int i = 0; i < cards.size(); i++)
        {
            if(i != cards.size() - 1)
            {
                System.out.println("第" + (i + 1) + "个人揭的牌:" + cards.get(i));
            }
            else {
                System.out.println("底为:" + cards.get(i));
            }
        }
    }
}
